#include "user_task.h"
#include "user_config.h"

#define LOG_TAG "user_task"
#include "elog.h"

void task_init(void *p) {
	
	user_ws2812_init();
	
	user_elog_init();
	
	user_CLI_init();
	
    xTaskCreate(task_create, "task_create", 128, NULL, 7, NULL);
	
	vTaskStartScheduler();
	
}

void task_create(void *p) {
	
    taskENTER_CRITICAL();
	
//	print_create();
	ws2812_create();
//	adc_create();
	
    vTaskDelete(NULL);
	
    taskEXIT_CRITICAL();
	
}
